import http from '@/utils/http'
enum Api {
    exportExportChannelApi = '/api/export/exportChannel', //渠道信息导出
    exportExportProductApi = '/api/export/exportProduct', //产品信息导出
    exportExportOrderApi = '/api/export/exportInventoryPackageOrder', //订单信息导出

    exportAssociateMemberOrderApi = '/api/export/exportAssociateMemberOrder', //联合会员订单信息导出
    exportAssociateMemberOrderPaymentApi = '/api/export/exportAssociateMemberOrderPayment', //联合会员订单支付信息导出
    exportEquityVoucherDetailApi = '/api/export/exportEquityVoucherDetail', //权益使用明细信息导出

    exportPageExportHistoryApi = '/api/export/pageExportHistory', //导出记录

}

// 导出记录
/**
 * 
 * @returns 
CHANNEL( "channel", "渠道信息"),
PRODUCT( "product", "产品信息"),
INVENTORY_PACKAGE_ORDER( "inventoryPackageOrder", "存量包订单信息"),
 */
export const exportPageExportHistoryApiPost = async (data:any) => {
    return http.post(Api.exportPageExportHistoryApi,data)
}
// 渠道信息导出
export const exportExportChannelApiPost = async (data:any) => {
    return http.post(Api.exportExportChannelApi,data)
}
// 产品信息到处
export const exportExportProductApiPost = async (data:any) => {
    return http.post(Api.exportExportProductApi,data)
}

// 产品信息到处
export const exportExportOrderApiPost = async (data:any) => {
    return http.post(Api.exportExportOrderApi,data)
}
// 联合会员订单信息导出
export const exportAssociateMemberOrderApiPost = async (data:any) => {
    return http.post(Api.exportAssociateMemberOrderApi,data)
}
// 联合会员订单支付信息导出
export const exportAssociateMemberOrderPaymentApiPost = async (data:any) => {
    return http.post(Api.exportAssociateMemberOrderPaymentApi,data)
}
// 权益使用明细信息导出
export const exportEquityVoucherDetailApiPost = async (data:any) => {
    return http.post(Api.exportEquityVoucherDetailApi,data)
}
